package com.fzf.org.exception;


import lombok.Getter;

@Getter
public class BizException extends RuntimeException  {
    private String code;
    private String msg;

    public BizException(String code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public BizException(BizExceptionTypeEnum bizExceptionTypeEnum) {
        super(bizExceptionTypeEnum.getMsg());
        this.code = bizExceptionTypeEnum.getCode();
        this.msg = bizExceptionTypeEnum.getMsg();
    }

}
